﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="wfrmPersonalBuscar.aspx.cs" Inherits="wfrmPersonalBuscar" %>
<%@ Register Assembly="Anthem" Namespace="Anthem" TagPrefix="anthem" %>
<%@ Register Assembly="AnthemExtensions" Namespace="AnthemExtensions" TagPrefix="anthemext" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"  Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"  Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"   Namespace="DevExpress.Web.ASPxCallbackPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"   Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"  Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.1.Export, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxGridView.Export" TagPrefix="dxwgv" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script type="text/javascript">
function OnRowClick(e){
_aspxClearSelection();
GridSolicitud._selectAllRowsOnPage(false);
GridSolicitud.SelectRow(e.visibleIndex,true);
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Listado de Personas - Grupo Trabajo</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        &nbsp;<table style="width: 669px">
            <tr>
                <td style="vertical-align: middle; color: white; background-color: maroon; text-align: center;" colspan="5">
                    <strong>Busqueda de Personal Disponible</strong></td>
            </tr>
            <tr>
                <td style="width: 60px">
                    <asp:Label ID="Inicio" runat="server" Font-Bold="False" Text="Fecha Inicio:" Width="81px"></asp:Label></td>
                <td style="width: 186px">
                    <dx:ASPxDateEdit id="ASPxDateEdit1" runat="server">
                    </dx:ASPxDateEdit></td>
                <td style="width: 100px">
                    <asp:Label ID="Label2" runat="server" Font-Bold="False" Text="Categoría:"></asp:Label></td>
                <td style="width: 100px">
                    <dx:aspxcombobox id="Aspxcombobox3" runat="server" valuetype="System.String">
                        <validationsettings validationgroup="Categoria">
                        <RequiredField __designer:dtid="17733000842182680" ErrorText="Selecionar Estado" IsRequired="True"    />
                    </validationsettings>
                        <border bordercolor="Maroon">
</border>
                    </dx:aspxcombobox></td>
                <td style="width: 100px">
                    </td>
            </tr>
            <tr>
                <td style="width: 60px; height: 21px">
                    <asp:Label ID="Label6" runat="server" Font-Bold="False" Text="Fecha Fin:" Width="74px"></asp:Label></td>
                <td style="width: 186px; height: 21px">
                    <dx:ASPxDateEdit id="ASPxDateEdit2" runat="server">
                    </dx:ASPxDateEdit></td>
                <td style="width: 100px; height: 21px">
                    <asp:Label ID="Label3" runat="server" Font-Bold="False" Text="Horas Requeridas:" Width="80px"></asp:Label></td>
                <td style="width: 100px; height: 21px">
                    <anthem:TextBox ID="Textbox2" runat="server" BorderStyle="Solid" CssClass="textBoxMaroon"
                        MaxLength="10" Width="74px">0</anthem:TextBox></td>
                <td style="width: 100px; height: 21px">
                </td>
            </tr>
            <tr>
                <td style="width: 60px; height: 21px">
                    <asp:Button ID="Button1" CssClass="button2" runat="server" Text="Buscar" Width="75px" /></td>
                <td style="width: 186px; height: 21px">
                </td>
                <td style="width: 100px; height: 21px">
                </td>
                <td style="width: 100px; height: 21px">
                </td>
                <td style="width: 100px; height: 21px">
                </td>
            </tr>
            <tr>
                <td colspan="5" rowspan="2">
        <dx:ASPxGridView ID="GridSolicitud" runat="server" AutoGenerateColumns="False" Caption="Listado de Personal"
            ClientInstanceName="GridSolicitud" Font-Bold="False" KeyFieldName="ID"
            Width="671px" DataSourceID="SqlDataSource1">
            <Styles>
                <Header CssClass="tableHeader" Font-Bold="True" ForeColor="White">
                </Header>
                <AlternatingRow Enabled="True">
                </AlternatingRow>
                <PagerBottomPanel BackColor="#D7C8C7" ForeColor="White">
                </PagerBottomPanel>
            </Styles>
            <Columns>
                <dx:GridViewCommandColumn VisibleIndex="0" Width="5px">
                    <ClearFilterButton Text="Limpiar" Visible="True">
                    </ClearFilterButton>
                </dx:GridViewCommandColumn>
                <dx:GridViewDataTextColumn Caption="C&#243;digo Personal" VisibleIndex="1" Width="25px" FieldName="ID">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="Nombres" VisibleIndex="2" Width="80px" FieldName="NOMBRES">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="Apellidos" VisibleIndex="3" Width="80px" FieldName="APELLIDOS">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="Categor&#237;a" VisibleIndex="4" Width="40px" FieldName="CATEGORIA">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="Los" VisibleIndex="5" Width="25px" FieldName="LOS">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="Sub Los" VisibleIndex="6" Width="30px" FieldName="SUBLOS">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="Horas Disponibles" VisibleIndex="7" Width="30px" FieldName="HORAS">
                </dx:GridViewDataTextColumn>
            </Columns>
            <Settings ShowFilterRow="True" />
            <ClientSideEvents RowClick="function(s, e) { OnRowClick(e);}" />
        </dx:ASPxGridView>
                </td>
            </tr>
            <tr>
            </tr>
            <tr>
                <td style="width: 60px">
        <asp:Button ID="btnSeleccionar" runat="server" CssClass="button2" Text="Seleccionar" /></td>
                <td style="width: 186px">
                </td>
                <td style="width: 100px">
                </td>
                <td style="width: 100px">
                </td>
                <td style="width: 100px">
                </td>
            </tr>
            <tr>
                <td style="width: 60px">
                </td>
                <td style="width: 186px">
                </td>
                <td style="width: 100px">
                </td>
                <td style="width: 100px">
                </td>
                <td style="width: 100px">
                </td>
            </tr>
        </table>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:GPConnectionString2 %>" SelectCommand="SELECT [ID], [APELLIDOS], [NOMBRES], [CATEGORIA], [LOS], [SUBLOS], [HORAS] FROM [TB_PERSONAL]">
        </asp:SqlDataSource>
    </div>
    </form>
</body>
</html>
